package cn.cuilan.client.constant;

import java.util.HashSet;
import java.util.Set;

/**
 * 请求URI白名单，不进行代理
 *
 * @author zhang.yan
 */
public class UriWhiteList {

    private static Set<String> whiteList = new HashSet<>();

    static {
        whiteList.add("activity.windows.com:443");
    }

    public static boolean contains(String uri) {
        return whiteList.contains(uri);
    }

    /**
     * 添加白名单
     *
     * @param uri uri
     */
    public static void addUri(String uri) {
        whiteList.add(uri);
    }

    /**
     * 删除白名单
     *
     * @param uri uri
     */
    public static void removeUri(String uri) {
        whiteList.remove(uri);
    }

}
